import request from '@/config/axios'
import type { TableData } from './types'
export const getTableListApi = (params: any): Promise<IResponse> => {
  return request.post({ url: 'http://localhost:8081/personnel/selOperationLog', params })
}

export const delTableListApi = (ids: string[] | number[]): Promise<IResponse> => {
  return request.post({ url: 'http://localhost:8081/personnel/lzrdelOperationLog', data: { ids } })
}

export const getTableListApihoutai = (params: any): Promise<IResponse> => {
  return request.post({ url: 'http://localhost:8081/personnel/selBackstageLoginLog', params })
}

export const delTableListApihoutai = (id: string[] | number[]): Promise<IResponse> => {
  return request.post({ url: 'http://localhost:8081/personnel/delReceptionLoginLog', data: { id } })
}

export const getTableListApiqiantai = (params: any): Promise<IResponse> => {
  return request.post({ url: 'http://localhost:8081/personnel/selReceptionLoginLog', params })
}

export const getTableListfenghao = (params: any): Promise<IResponse> => {
  return request.post({ url: 'http://localhost:8081/personnel/selClosureLog', params })
}

export const delTableListApifenghao = (id: string[] | number[]): Promise<IResponse> => {
  return request.post({ url: 'http://localhost:8081/personnel/delClosureLog', data: { id } })
}

